<?php
//网站配置，系统配置
class Cons {
	 public static $websetup;//网站配置
	 public static $sysconfig;//系统配置
	 public function __construct(){
	        self::setup();
			self::config();
	 }
	 public static function setup(){//网站配置
	     $setup=M("websetup");
		 self::$websetup=$setup->find();
	 }
	 public static function config(){
	    $config=M("sysconfig");
		self::$sysconfig=$config->find();
	 }
}
$s=new Cons();
?>